# This file is part of BlackArch Linux ( https://www.blackarch.org/ ).
# See COPYING for license details.

pkgname=python-eth-utils
_pkgname=eth_utils
pkgver=5.3.0
pkgrel=1
pkgdesc='Common utility functions for ethereum codebases.'
url='https://pypi.org/project/eth-utils/#files'
arch=('any')
license=('MIT')
depends=('python' 'python-eth-hash' 'python-eth-typing' 'python-toolz'
         'python-cytoolz')
makedepends=('python-setuptools')
source=("https://files.pythonhosted.org/packages/source/${_pkgname::1}/$_pkgname/$_pkgname-$pkgver.tar.gz")
sha512sums=('1f54c7babda64d24e59d21bc963488da0111d44083e7821dbc83d53e9ed5ac91210e745782f27d0bcd72c6a1477236817124fa791c8dccbe1d24ebd12e1d8dec')

build() {
  cd "$_pkgname-$pkgver"

  python setup.py build
}

package() {
  cd "$_pkgname-$pkgver"

  python setup.py install --root="$pkgdir" --prefix=/usr -O1 --skip-build
}

